package com.xbx.admin.annotation;

import com.xbx.admin.annotation.intercepter.TransmitUserInfoFeighClientIntercepter;
import com.xbx.admin.filter.TransmitUserInfoFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注解实现类
 *
 * @author 89005691
 * @create 2018-10-08 15:14
 */
@Configuration
public class EnableUserInfoTransmitterAutoConfiguration {

    public EnableUserInfoTransmitterAutoConfiguration() {
    }

    @Bean
    public TransmitUserInfoFeighClientIntercepter transmitUserInfo2FeighHttpHeader() {
        return new TransmitUserInfoFeighClientIntercepter();
    }

    @Bean
    public TransmitUserInfoFilter transmitUserInfoFromHttpHeader() {
        return new TransmitUserInfoFilter();
    }
}
